package com.jichangxiu.server.platform.entity.map;

import com.jichangxiu.server.platform.entity.dto.PlatformDictTypeQueryDto;
import com.jichangxiu.server.platform.entity.po.PlatformDictType;
import com.jichangxiu.server.platform.entity.vo.PlatformDictTypeAddVo;
import com.jichangxiu.server.platform.entity.vo.PlatformDictTypeEditVo;
import com.jichangxiu.server.platform.entity.vo.PlatformDictTypeQueryVo;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * PlatformDictTypeBasic:
 *
 * @author Jcx
 * @create 2023-03-19 8:41
 */
@Mapper(builder = @Builder(disableBuilder = true))
public interface PlatformDictTypeBasic {

    public PlatformDictTypeBasic INSTANCE = Mappers.getMapper(PlatformDictTypeBasic.class);

    /**
     * 转换 PlatformDictType
     *
     * @param platformDictTypeAddVo 视图对象
     * @return 数据库对象
     */
    public PlatformDictType toPlatformDictType(PlatformDictTypeAddVo platformDictTypeAddVo);

    /**
     * 转换 PlatformDictType
     *
     * @param platformDictTypeEditVo 视图对象
     * @return 数据库对象
     */
    public PlatformDictType toPlatformDictType(PlatformDictTypeEditVo platformDictTypeEditVo);

    /**
     * 转换 PlatformDictType
     *
     * @param platformDictTypeQueryVo 视图对象
     * @return 数据库对象
     */
    public PlatformDictType toPlatformDictType(PlatformDictTypeQueryVo platformDictTypeQueryVo);

    /**
     * 转换 PlatformDictTypeQueryDto
     *
     * @param platformDictType 数据库对象
     * @return 传输对象
     */
    public PlatformDictTypeQueryDto toPlatformDictTypeQueryDto(PlatformDictType platformDictType);

    /**
     * 转换 PlatformDictTypeQueryDto 列表
     *
     * @param platformDictTypeList 数据库对象列表
     * @return 传输对象列表
     */
    public List<PlatformDictTypeQueryDto> toPlatformDictTypeQueryDtoList(List<PlatformDictType> platformDictTypeList);

}
